package service.impl;

import dao.FlowerDao;
import dao.impl.FlowerDaoImpl;
import entity.Flower;
import service.FlowerService;

import java.util.List;

/**
 * @Author: DELL
 * @Since: 2024/9/29 09:59
 * @Description:
 */
public class FlowerServiceImpl implements FlowerService{
    FlowerDao flowerDao=new FlowerDaoImpl();
    @Override
    public List<Flower> getAll() {
        return flowerDao.getAll();
    }

    @Override
    public int add(String name, String anothername, String property, double price, String production) {
        return flowerDao.add(name,anothername,property,price,production);
    }

    @Override
    public int delete(int id) {
        return flowerDao.delete(id);
    }

    @Override
    public int update(int id, String name, String anothername, String property, double price, String production) {
        return flowerDao.update(id,name,anothername,property,price,production);
    }
}
